<template>
  <div class="person">
    <div class="icon">
      <img
        @click="onmyindex"
        src="../../../components/My/image/gerenzhuye_icon_fanhui.png"
        alt=""
      />
    </div>
    <div class="picture">
      <div class="imgbox">
        <img
          src="../../../components/My/image/gerenzhuye_icon_touxiang.png"
          alt=""
        />
      </div>
      <div class="picturecount">
        <p>Hna</p>
        <div class="picturecountFun">
          <span>轻油</span>|<span>轻耐</span>|<span>色素</span>|<span
            >皱纹</span
          >
        </div>
      </div>
      <div class="pictureright">
        <div class="sign" @click="goPointsCenter">签到</div>
      </div>
    </div>
    <div class="vermicelli">
      <li>
        <p>0</p>
        <span>粉丝</span>
      </li>
      <li>
        <p>0</p>
        <span>点赞</span>
      </li>
      <li>
        <p>0</p>
        <span>收藏</span>
      </li>
    </div>
    <div class="tab">
      <van-tabs v-model="activeName">
        <van-tab title="文章" name="a">
          <div class="count">
            <img
              src="../../../components/My/image/gerenzhuye_icon_quexingye.png"
              alt=""
            />
            <p>还没有发表文章哦~</p>
          </div>
        </van-tab>
        <van-tab title="说说" name="b">
          <div class="count">
            <img
              src="../../../components/My/image/gerenzhuye_icon_quexingye.png"
              alt=""
            />
            <p>还没有发表说说哦~</p>
          </div>
        </van-tab>
        <van-tab title="产品评论" name="c">
          <div class="count">
            <img
              src="../../../components/My/image/gerenzhuye_icon_quexingye.png"
              alt=""
            />
            <p>还没有发表评论哦~</p>
          </div>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeName: "a",
    };
  },
  methods: {
    onmyindex() {
      this.$router.push({ path: "/home/my" });
    },
    goPointsCenter() {
      this.$router.push({ path: "pointsCenter" });
    },
  },
};
</script>

<style lang="scss">
.person {
  width: 750px;
  height: 336px;
  background: #bbd2f4;
  padding-top: 114px;

  .icon {
    padding-top: 40px;
    margin-bottom: 38px;
  }
  .icon img {
    /* display: block; */
    margin-left: 40px;
    width: 15px;
    height: 30px;
  }
  .picture {
    /* width: 168px; */
    /* background: red; */
    height: 126px;
  }
  .imgbox {
    float: left;
    width: 126px;
    height: 126px;
    /* background: blueviolet; */
    margin-left: 45px;
  }
  .picturecount {
    padding: 26px 0px;
    margin-left: 24px;
    float: left;
    width: 264px;
    height: 126px;
    /* background: fuchsia; */
    color: #ffffff;
  }
  .picturecount p {
    font-size: 28px;
  }
  .picturecountFun {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 24px;
  }
  .pictureright {
    float: right;
    width: 110px;
    height: 126px;
    margin-right: 20px;
    /* background: red; */
  }
  .sign {
    text-align: center;
    margin: 45px 0px;
    width: 110px;
    height: 36px;
    line-height: 32px;
    /* background: black; */
    font-size: 24px;
    color: #ffffff;
    border-radius: 18px 18px 18px 18px;
    border: 2px solid #fff;
  }
  .vermicelli {
    text-align: center;
    margin-top: 15px;
    display: flex;
    width: 288px;
    flex-direction: row;
    justify-content: space-evenly;
    color: #ffffff;
    margin-bottom: 15px;
  }
  .vermicelli li {
    list-style: none;
  }
  .van-tabs--line .van-tabs__wrap {
    height: 70px;
    border-radius: 30px 30px 0px 0px;
  }
  .van-tab__text--ellipsis {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 20px;
  }
  .van-tabs__line {
    position: absolute;
    bottom: 0.9375rem;
    left: 0;
    z-index: 1;
    width: 2.5rem;
    height: 8px;
    background-color: #bbd2f4;
    border-radius: 0.1875rem;
  }
  .van-tabs__nav--line {
    width: 496px;
    box-sizing: content-box;
    height: 100%;
    padding-bottom: 0.9375rem;
  }
  .van-tabs__nav--line {
    width: 740px;
    padding: 0 10px 0 10px;
    font-size: 3.125rem;
  }
  .person .van-tabs__nav--line {
    width: 48rem;
    box-sizing: content-box;
    height: 100%;
    padding-bottom: 0.9375rem;
  }
  .count {
    margin: 270px 177px 0px 177px;
    height: 420px;
    width: 396px;
    // background: blue;
    font-size: 24px;
    text-align: center;
  }
  .count img {
    display: block;
    margin-bottom: 40px;
  }
}
</style>
